<?php

namespace app\admin\model;

use think\Model;

class ScoreShop extends Model
{
    
    public static function list()
    {
        $list = self::order('sort asc,id desc');
        $status = input('status');
        if (isset($status) && ($status == 0 || $status == 1)) {
            $list->where(['status' => $status]);
        }
        $list = $list->paginate(10);
        return $list;
    }
}
